From 5ad8205ca8e5a0189e90948ff37bb1dd54c1480b Mon Sep 17 00:00:00 2001 From: Jeroen van der Heijden Date: Fri, 28 Aug 2020 09:28:21 +0200 Subject: [PATCH] Do not remove empty tag on startup --- include/siri/version.h | 2 +- src/siri/db/tags.c | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/include/siri/version.h b/include/siri/version.h index 912ebc22..467e9bef 100644 --- a/include/siri/version.h +++ b/include/siri/version.h @@ -15,7 +15,7 @@ * Note that debian alpha packages should use versions like this: * 2.0.34-0alpha0 */ -#define SIRIDB_VERSION_PRE_RELEASE "-alpha-0" +#define SIRIDB_VERSION_PRE_RELEASE "-alpha-1" #ifndef NDEBUG #define SIRIDB_VERSION_BUILD_RELEASE "+debug" diff --git a/src/siri/db/tags.c b/src/siri/db/tags.c index cf0d1456..0faa02e8 100644 --- a/src/siri/db/tags.c +++ b/src/siri/db/tags.c @@ -402,14 +402,6 @@ static int TAGS_load(siridb_t * siridb) break; } - if (!tag->series->len) - { - log_warning("Removing tag '%s' since it has no series", tag->name); - tag->flags |= TAG_FLAG_CLEANUP; - siridb_tag_decref(tag); - continue; - } - if (ct_add(siridb->tags->tags, tag->name, tag)) { log_error("Cannot add tag to collection"); @@ -422,7 +414,6 @@ static int TAGS_load(siridb_t * siridb) { siridb->tags->next_id = tag->id + 1; } - } while (total--) -- 2.30.2